1bashThis demonstrates compressing multiple files into a ZIP archive using brace expansion.zip foo.zip /{bar,baz}.txtexternal toolszipfile compression
2bashThis demonstrates file compression using the zip command to archive multiple files into a single .zip file.zip foo.zip /bar.txt /baz.txtexternal toolszipfile compression
3bashThis demonstrates using the zip command to create a compressed archive of a file.zip foo.zip /bar.txtexternal toolszipfile compression
4bashThis demonstrates compressing files and directories into a ZIP archive using the zip command with the --recurse-paths option.zip --recurse-paths foo.zip /barexternal toolszipdirectory compression
5bashThis demonstrates creating a password-protected ZIP archive using the zip command.zip -er myArchive.zip FolderNameexternal toolsziparchive creationpassword protection